package game.controller.command
{
	import com.utils.ZooHandler;
	
	import flash.utils.clearInterval;
	import flash.utils.setInterval;
	
	import game.GlobalConfig;
	import game.controller.command.base.BaseCommand;
	import game.model.type.Enum;
	import game.model.type.NoticeCMD;
	import game.util.CarJsCall;
	import game.util.MySound;
	import game.view.panel.game.*;
	import game.view.panel.other.LabelNoticeView;
	
	import morn.App;
	import morn.core.handlers.Handler;
	import morn.core.managers.ResLoader;
	
	public class GameCommand extends BaseCommand
	{
		
		public function GameCommand()
		{
			super();
			trace("GameCommand");
		}
		
		override protected function createHandlerMap():void
		{
			trace("GameCommand createHandlerMap");
			bindHandler(NoticeCMD.NOTICE_Detail,onCmdDetail);
			bindHandler(NoticeCMD.NOTICE_Banner,onCmdBanner);
			
		}
		private function onCmdDetail(data:Object):void{
			ZooMain.view.showView(MyRecordPanel,data);	
		}
		
		private function onCmdBanner(data:Object):void{
			ZooMain.view.showView(ExplainPanel,data);	
		}
	}
}
